
var str = "hello ,11aa11,22bb22,12aa12, i am moyu , my website is http://47.100.42.191:8080/personal/index.html,my phone is 15234492364,my friend is tom,his phone is 18735830777, his website is http://47.23.42.50:22/personal/index.html,his email is sxaufujie@163.com";


//var pattern = /(http|ftp)\:\/\/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):?(\d{2,4})?/ig;
//找到目标串中所有的手机号
var pattern = /(\d{2})(\w+)\1/g;
let result = null;
while(result = pattern.exec(str)){
    console.log(result);
}
